package com.streetlight.lampcursor.model

import com.streetlight.lampcursor.model.LightMode
import com.streetlight.lampcursor.model.LightStatus

data class StreetLightData(
    val id: String,
    val status: LightStatus,
    val mode: LightMode,
    val brightness: Int,
    val powerConsumption: Double,
    val workingHours: Double,
    val temperature: Double,
    val voltage: Double,
    val current: Double,
    val isOnline: Boolean,
    val lastUpdate: Long
)

data class ScheduleData(
    val id: String,
    val name: String,
    val startTime: String,
    val endTime: String,
    val brightness: Int,
    val isEnabled: Boolean,
    val daysOfWeek: List<Int> // 0=周日, 1=周一, ...
)

data class SettingsData(
    val autoBrightness: Boolean,
    val motionSensor: Boolean,
    val weatherAdaptation: Boolean,
    val serverAddress: String,
    val deviceId: String
) 